
require('../config/mongodb')()

var products_category_mainModel = require('../models/products_category_mainModel')

var fs = require('fs')

var str = fs.readFileSync('../db/products_category_main.json')

var arr = JSON.parse(str)

arr.forEach(element => {
    new products_category_mainModel(element).save(function(err,item){

        console.log(item);
    });
});
